<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/react.development.js"></script>
    <script src="lib/react-dom.development.js"></script>
    <script src="lib/prop-types.js"></script>
    <script src="lib/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="text/babel">
    const root = ReactDOM.createRoot(document.querySelector("#root"));
    const App = ()=>(
        <div>
            <h3>App</h3>
            <Child a={1} b={"2"} c={100} d={800}></Child>
        </div>
    );
    const Child = (props)=>(
        <div>
            <h3>Child</h3>
            <p>a->{props.a}</p>
            <p>b->{props.b}</p>
            <p>c->{props.c}</p>
            <p>d->{props.d}</p>
        </div>
    )
    Child.propTypes = {
        a:PropTypes.number,
        b:PropTypes.string,
        c:PropTypes.number.isRequired
    }
    Child.defaultProps = {
        d:300
    }
    root.render(<App/>);
</script>
</html>